import request from '@/utils/request'

// 查询二手交易商品分类列表
export function listGoodsClassify(query) {
  return request({
    url: '/posts/GoodsClassify/list',
    method: 'get',
    params: query
  })
}

// 查询二手交易商品分类详细
export function getGoodsClassify(id) {
  return request({
    url: '/posts/GoodsClassify/' + id,
    method: 'get'
  })
}

// 新增二手交易商品分类
export function addGoodsClassify(data) {
  return request({
    url: '/posts/GoodsClassify',
    method: 'post',
    data: data
  })
}

// 修改二手交易商品分类
export function updateGoodsClassify(data) {
  return request({
    url: '/posts/GoodsClassify',
    method: 'put',
    data: data
  })
}

// 删除二手交易商品分类
export function delGoodsClassify(id) {
  return request({
    url: '/posts/GoodsClassify/' + id,
    method: 'delete'
  })
}

// 导出二手交易商品分类
export function exportGoodsClassify(query) {
  return request({
    url: '/posts/GoodsClassify/export',
    method: 'get',
    params: query
  })
}